package com.jade.zsy.store.service;

import com.jade.bss.DbException;
import com.jade.bss.db.BaseFacade;
import com.jade.framework.base.util.PagingResult;
import com.jade.zsy.store.vo.NormVo;

/**
 * @version 1.0--Created by wq on 2017/7/1.
 * @Description:
 */
public interface NormFacade extends BaseFacade {
    /**
     * @param NormVo
     * @return
     * @throws DbException
     * @throws IllegalAccessException
     * @throws InstantiationException
     */
    public NormVo query(long NormVo)throws DbException,IllegalAccessException,InstantiationException;

    /**
     * @param ids
     * @throws DbException
     */
    public void delete(long... ids) throws DbException;

    /**
     *
     * @param entity
     * @param page
     * @param size
     * @param keys
     * @return
     * @throws DbException
     * @throws IllegalAccessException
     * @throws InstantiationException
     */
    public PagingResult queryEntity(Object entity, int page, int size, String keys)
            throws DbException, IllegalAccessException, InstantiationException;

    /**
     * @param normVo
     * @throws DbException
     * @throws IllegalAccessException
     * @throws InstantiationException
     */
    public void update(NormVo normVo)throws DbException,IllegalAccessException,InstantiationException;

}
